/**
 * 广寒宫
 * 网址:www.guanghangong.xyz
 */
package com.moon.admin.flowable.entity;

import java.util.Date;

import org.flowable.engine.repository.Deployment;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.moon.admin.framework.domain.Query;

import lombok.Getter;
import lombok.Setter;

/**
 * 流程部署信息
 * 
 * @author ninglong
 */
@Getter
@Setter
public class ActCnDeploymentEntity extends Query{
	
	private String id;
	
	/** 流程部署ID */
	private String deployId;

	/** 流程名称 */
	private String name;

	/** 流程类型 */
	private String category;
	
	/** 流程标识 */
	private String modelKey;

	/** 部署时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date deployTime;
	
	//查询条件
	private String userId;
	
	//显示是否重新部署按钮
	private Boolean repeatDeploy=false;
	
	
	public ActCnDeploymentEntity() {
		super();
	}

	public ActCnDeploymentEntity(Deployment deployment) {
		this.setId(deployment.getId());
		deployId = deployment.getId();
		name = deployment.getName();
		category = deployment.getCategory();
		modelKey = deployment.getKey();
		deployTime = deployment.getDeploymentTime();
	}
}